package com.example.demo.bingfa;
 
public class OuterClass {
	static {
		System.out.println("加载外部类");
	}
	static class InnerClass{
		public InnerClass() {}
		static {
			System.out.println("加载内部类");
		}
		static void innerMethod() {
			System.out.println("内部类的静态方法");
		}
		static int a;
	}
 
	public static void main(String[] args) {
		OuterClass out=new OuterClass();
		System.out.println("=============");
//		OuterClass.InnerClass.a=1;
		InnerClass innerClass=new InnerClass();
		InnerClass.innerMethod();
	}
 
}